﻿SeadragonJSRect = function(x, y, width, height) {
    /// <summary>Creates a rectangle at (x, y) of size width x height.</summary>
    /// <param name="x"></param>
    /// <param name="y"></param>
    /// <field name="x" type="Number">The x value.</field>
    /// <field name="y" type="Number">The y value.</field>
    /// <field name="width" type="Number">The width of the rectangle.</field>
    /// <field name="height" type="Number">The height of the rectangle.</field>
    /// <returns type="Object"></returns>
}

SeadragonJSRect.prototype =
{
    x: null,
    y: null,
    width: null,
    width: null,

    getAspectRatio: function() {
        /// <summary>Returns this rectangle's aspect ratio (width / height).</summary>
        /// <returns type="Number"></returns>
    },

    getTopLeft: function() {
        /// <summary>Returns (x, y) as a Seadragon.Point.</summary>
        /// <returns type="SeadragonJSPoint"></returns>
    },

    getBottomRight: function() {
        /// <summary>Returns (x + width, y + height) as a Seadragon.Point.</summary>
        /// <returns type="SeadragonJSPoint"></returns>
    },

    getCenter: function() {
        /// <summary>Returns (x + 0.5 * width, y + 0.5 * height) as a Seadragon.Point.</summary>
        /// <returns type="SeadragonJSPoint"></returns>
    },

    getSize: function() {
        /// <summary>Returns (width, height) as a Seadragon.Point.</summary>
        /// <returns type="SeadragonJSPoint"></returns>
    },

    equals: function() {
        /// <summary>Returns true if this rectangle has the same x, y, width and height as the given rectangle.</summary>
        /// <returns type="Boolean"></returns>
    }
}
